import { defineStore } from "pinia";

export const useGoods = defineStore('goods',{
    state(){
        return {
            msg:[]
        }
    },
    getters: {
        aaa(){
            return (this.msg.reduce((a,b)=>{
                return a +=b.price*b.count
            },0)).toFixed(2)
        }
    }
})